import { message } from "antd";
import * as generatorService from '../services/generator';

export default {
  namespace: 'generator',

  state: {
  },

  effects: {
    *generate({payload}, { call }) {
      console.log("clearAll generator");
      const res = yield call(generatorService.generate, payload);
      if (res.code === 200) {
        message.success('生成成功');
      }
    },
  },

  reducers: {
  },
};
